package org.amos.upms.listener.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RocketMQMessageListener(topic = "amos-rocketmq-test", consumerGroup = "test-group")
public class BizRocketMqConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        log.info("测试信息接收成功，data:{}", s);
    }
}
